CC=gcc
CFLAGS=-std=c99 -Wall -Werror

SOURCES=machine.c builtins.c m.c
OBJECTS=$(SOURCES:.c=.o)

all: sans

clean:
	rm -f *.o
	rm -f sans

todo:
	@grep TODO *c

%.o: %.c
	$(CC) -g -c $(CFLAGS) $< -o $@

sans: $(OBJECTS)
	gcc -o sans $(OBJECTS)
